package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 天达教育学生管理对象 td_student
 * 
 * @author ruoyi
 * @date 2024-05-24
 */
public class TdStudent extends TdClass
{
    private static final long serialVersionUID = 1L;

    /** 学生表ID */
    private Long id;

    /** 学生姓名 */
    @Excel(name = "学生姓名")
    private String name;

    /** 学生年龄 */
    @Excel(name = "学生年龄")
    private Long age;

    /** 家庭住址 */
    @Excel(name = "家庭住址")
    private String address;

    /** 学生状态 1：正常 2：停用  */
    @Excel(name = "学生状态 1：正常 2：停用 ")
    private String status;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 学生性别 1：男 2：女 */
    @Excel(name = "学生性别 1：男 2：女")
    private String sex;

    /** 入学时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入学时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date schoolTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long classId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setSchoolTime(Date schoolTime) 
    {
        this.schoolTime = schoolTime;
    }

    public Date getSchoolTime() 
    {
        return schoolTime;
    }
    public void setClassId(Long classId) 
    {
        this.classId = classId;
    }

    public Long getClassId() 
    {
        return classId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("age", getAge())
            .append("address", getAddress())
            .append("status", getStatus())
            .append("phone", getPhone())
            .append("sex", getSex())
            .append("createTime", getCreateTime())
            .append("schoolTime", getSchoolTime())
            .append("classId", getClassId())
            .toString();
    }
}
